home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 034a / cdcomsig.zip / PROTOCOL.BAT < prev    next >
DOS Batch File  |  1991-10-02  |  3KB  |  121 lines

  1. echo off
  2. set dszlog=dsz%6.log
  3.  
  4. if %1 == Zmodem goto Zmodem
  5. if %1 == Wxmodem goto Wxmodem
  6. if %1 == Ymodem goto Ymodem
  7. if %1 == Ymodem-Batch goto Ymodem-Batch
  8. if %1 == Xmodem goto Xmodem
  9. if %1 == Sealink goto Sealink
  10. if %1 == Megalink goto Megalink
  11. if %1 == Kermit goto Kermit
  12. if %1 == K9Xmodem goto k9Xmodem
  13. if %1 == Jmodem goto Jmodem
  14. if %1 == Super8K goto Super8K
  15. if %1 == Lynx goto Lynx
  16. if %1 == Puma goto Puma
  17. if %1 == MobyTurbo goto MobyTurbo
  18. if %1 == Pkzip goto Pkzip
  19. if %1 == Viewfile goto Viewfile
  20. goto end
  21.  
  22. rem      to add other protocols just follow these examples
  23.  
  24. rem %1 = protocol name, make sure it is exact match as what is in the
  25. rem      protocol.def file so the %1 == matches up (it is case sensitive also)
  26. rem %2 = port number (1, 2, 3, 4)
  27. rem %3 = baud rate (true connect rate baud, not locked baud)
  28. rem %4 = filename being passed to transfer.  This will also contain the
  29. rem      path to the file.  For batch @drive:\path\batch#.dsz is passed
  30. rem      ex: @c:\cdcom\batch#.dsz, where # is node number if there is one.
  31. rem %5 = port rate.  This will be the locked rate if port is locked
  32.  
  33. :Zmodem
  34. dsz port %2 sz %4
  35. goto end
  36.  
  37. :MobyTurbo
  38. dsz port %2 sz -m %4
  39. goto end
  40.  
  41. :Xmodem
  42. dsz port %2 sx %4
  43. goto end
  44.  
  45. :Ymodem
  46. dsz port %2 sx -k %4
  47. goto end
  48.  
  49. :Ymodem-Batch
  50. dsz port %2 sb -k %4
  51. goto end
  52.  
  53. :Ymodem-G
  54. rem Note that you must register DSZ for Ymodem-G to work
  55. dsz port %2 sb -g %4
  56. goto end
  57.  
  58. :Kermit
  59. kermit send %4
  60. goto end
  61.  
  62. :Megalink
  63. mlink16 port %2 sm %4
  64. goto end
  65.  
  66. :K9Xmodem
  67. superk p%2 s%3 tk ds f%4
  68. goto end
  69.  
  70. :Jmodem
  71. jmodem s%2 %4
  72. goto end
  73.  
  74. :Sealink
  75. clink /p%2 t %4
  76. goto end
  77.  
  78. :Super8K
  79. superk p%2 s%3 ts ds f%4
  80. goto end
  81.  
  82. :Wxmodem
  83. superk p%2 s%3 tw ds f%4
  84. goto end
  85.  
  86. :Lynx
  87. lynx s %4
  88. goto end
  89.  
  90. :Puma
  91. puma s %4
  92. goto end
  93.  
  94. :Pkzip
  95. rem this was used for previous versions of cdcom you can delete it
  96. rem if you want.  I left it in because the batch file is universal
  97. rem for all the doors.
  98. pkzip -rp %2 %3 >%4
  99. if %5 == 0 goto end
  100. pkzip -z %2 <how2un.zip
  101. goto end
  102.  
  103. :Viewfile
  104. rem this is configured to use AViewCom
  105. rem %2 is the full filename with path to temp dir (line 2 cdcom.def)
  106. rem %3 is comport (COM1, COM2, etc or LOCAL)
  107. rem %4 is time left online, as calculated from program
  108. rem %5 is ansi on=1, off=0 or choose=2 (program passes 0 or 1 however)
  109. rem %6 is the path to temp dir, given by line 2 cdcom.def
  110. rem use -w option ONLY if running wildcat, as the program uses quite
  111. rem a few lines in callinfo.bbs and most conversion programs probably
  112. rem don't write them all to it.  %3 - %6 should handle any needed info.
  113. rem If you are running it with -w you must copy callinfo.bbs to the
  114. rem current directory.  Aviewcom will delete it when it is done.
  115. rem copy c:\wildcat\node?\callinfo.bbs
  116. rem aviewcom %2 -w
  117. aviewcom %2 %3 -t%4 -a%5 -p%6
  118. goto end
  119.  
  120. :end
  121.